package com.qiang.test01;

import java.lang.reflect.Constructor;
import java.util.concurrent.AbstractExecutorService;

public class Demo01 {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException {
        Class<?> c = Class.forName("com.qiang.test01.Student");
       /* Constructor<?>[] constructor = c.getConstructors();
        for (Constructor<?> constructor1 : constructor) {
            System.out.println(constructor1);
        }*/
        /*Constructor<?>[] declaredConstructors = c.getDeclaredConstructors();
        for (Constructor<?> declaredConstructor : declaredConstructors) {
            System.out.println(declaredConstructor);
        }*/
        /*Constructor<?> dd = c.getDeclaredConstructor(String.class);
        System.out.println(dd);*/

        Constructor<?> ss = c.getConstructor(String.class, int.class);
        System.out.println(ss);

    }
}
